package com.itlong.cloud.app.dao;

import com.itlong.cloud.POJO.PO.AdPO;
import com.itlong.cloud.POJO.PO.AppPublishInfoPO;
import com.itlong.cloud.POJO.PO.PropertyInfoPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *      旧版APP_服务版块数据访问接口
 * </desc>
 *
 * @createDate 2017/10/17
 */
@Mapper
@Repository
public interface IAppOldServeDao {
    /**
     * <desc>
     *     旧版APP_获取服务版块广告
     * </desc>
     * @param params
     * @return
     * @author cuiduanwu
     * @createDate 2017/11/13
     */
    List<AdPO> getAdByPage(Map params);

    /**
     * <desc>
     *     旧版APP_获取服务版块广告的图片
     * </desc>
     * @param adId
     * @return
     * @author cuiduanwu
     * @createDate 2017/11/13
     */
    List<Map<String,Object>> getImageByAd(@Param("adId") String adId);

    /**
     * <desc>
     *     旧版APP_新增报修与投诉信息
     * </desc>
     * @param propertyInfoPO
     * @return
     * @author cuiduanwu
     * @createDate 2017/11/15
     */
    int savePropertyInfo(PropertyInfoPO propertyInfoPO);


    /**
     * <desc>
     *     旧版APP_检测APP版本
     * </desc>
     * @param appType 类型,android/ios/iossdk/androidsdk/androidengineer
     * @param appSort 类别 test/official
     * @return
     * @author cuiduanwu
     * @createDate 2017/11/15
     */
    AppPublishInfoPO getLatestApp(@Param("appType")String appType,@Param("appSort") String appSort);



}
